<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreatePriceStrategiesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        // TODO price_strategies名称下次记得改了也行

        Schema::create('price_strategies', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('store_id')->unsigined()->comment('店铺id');
            $table->string('name')->comment('策略名称');
            $table->decimal('price_strategies', 10, 2)->comment('价格策略');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('price_strategies');
    }
}
